package com.tangshuai.video.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * @Author TANGSHUAI
 * @Date 2024-03-03 23:43
 * 视频播放
 **/
public class VideoView {
    // ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    // 视频信息ID
    private Integer videoInfoId;
    // 视频播放顺序（第几集）
    private String videoViewIndex;
    // 视频地址
    private String videoUrl;
    // 上传时间
    private Date uploadTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVideoInfoId() {
        return videoInfoId;
    }

    public void setVideoInfoId(Integer videoInfoId) {
        this.videoInfoId = videoInfoId;
    }

    public String getVideoViewIndex() {
        return videoViewIndex;
    }

    public void setVideoViewIndex(String videoViewIndex) {
        this.videoViewIndex = videoViewIndex;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        return "VideoView{" +
                "id=" + id +
                ", videoInfoId=" + videoInfoId +
                ", videoViewIndex='" + videoViewIndex + '\'' +
                ", videoUrl='" + videoUrl + '\'' +
                ", uploadTime='" + uploadTime + '\'' +
                '}';
    }
}
